package com.wfk.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wfk.entity.SysRoleMenu;
import com.wfk.mapper.SysRoleMenuMapper;
import com.wfk.service.ISysRoleMenuService;

/**
 * <p>
 * 平台角色菜单表 服务实现类
 * </p>
 *
 * @since 2018-12-05
 */
@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements ISysRoleMenuService {

	@Override
	public SysRoleMenu getByRoleid(Integer roleid) {
		QueryWrapper<SysRoleMenu> ew = new QueryWrapper<SysRoleMenu>();
		ew.eq("roleid", roleid) ;
		return super.getOne(ew) ;
	}
}
